﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddLocal.aspx.cs" Inherits="Web.admin.BasicManage.Locals.AddLocal" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <script src="../../js/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../../js/function.js" type="text/javascript"></script>
    <link href="../../css/style.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" language="javascript">
        function checkEmpty() {
            var emptyNumber = 0;
            $(".class").each(function () {
                if ($(this).val() == "")
                    emptyNumber = emptyNumber + 1;
            });
            if (emptyNumber > 0) {
                alert("所有项为必填项，不允许为空");
                return false;
            }
            else
                return true;
        };
        
    
     </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="top_div">
        <div class="top_div_left" >
                <table>
                    <tr >
                        <td ><img  alt=""; src="../../images/main_hl.gif" /></td>
                        <td ><img alt=""; src="../../images/main_hl2.gif" /></td>
                        <td class="topNav"><span>校区管理</span></td>
                        <td><img alt=""; src="../../images/main_hr.gif" /></td>
                    </tr>
                </table>
        </div>
    </div>
     <div class="middle_div">
        <div class="middle_left"></div>
        <div class="middle_middle">
            <div class="navigation"><span>首页&gt;基础数据管理&gt;校区管理</span>
            <div style="float:right; margin-right:5px;">
                    <a href="LocalList.aspx">返回校区列表>></a>
                </div>
            </div>
            <div class="submitTable">
                <table>
                    <tr>
                        <th>校区编号</th>
                        <td align="left">
                            <asp:TextBox ID="TextBoxCode" runat="server" CssClass="class"></asp:TextBox>
                            <input type="hidden" id="LOCIDBOX" value="" runat="server" />
                            <label>*</label>
                            <asp:label ID="lblMsg" runat="server"></asp:label>
                        </td>
                    </tr>
                    <tr>
                        <th>学校名称</th>
                        <td align="left">
                            <asp:TextBox ID="TextBoxName" runat="server" CssClass="class"></asp:TextBox>                            
                            <label>*</label>
                        </td>
                    </tr>
                    <tr>
                        <td></td>
                        <td align="left"><asp:Button ID="ButtonOK" OnClientClick="return checkEmpty()"  CssClass="btn_reset" runat="server" Text="保存" 
                                onclick="ButtonOK_Click" /></td>
                    </tr>
                </table>
            </div>
        </div>
     </div>
    </form>
</body>
</html>
